public class test {
    public static void main(String[] args){
        StringBuffer s;
        s=new StringBuffer("AAAAAA");
        StringBuffer s1=s;
        s1.append("BBBBB");
        System.out.println("s1="+s1.toString());
        System.out.println("s="+s.toString());
    }
}
